package com.ll.gulimall.order.feign;

import com.ll.gulimall.order.vo.CartItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@FeignClient("gulimall-cart")
@Component
public interface CartFeignService {

    @GetMapping("/userCartItems")
    @ResponseBody
    List<CartItemVo> userCartItems();
}
